package com.mofang.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * InputChecker
 * 
 * @version 1.0.0
 */
public class InputChecker extends com.pactera.framework.util.InputChecker {
	protected static boolean isMatcher(String regex, String str) {
		Pattern p = Pattern.compile(regex);
		Matcher m = p.matcher(str);
		return m.find();
	}

	public static boolean isName(String str) {
		String regex = "[0-9a-zA-Z\u4E00-\u9FA5]+";
		return isMatcher(regex, str);
	}

}
